#include <iostream>
using namespace std;
int main()
{
    int gys(int,int),n,a[100],i,j,MaxN;
    long long t;
    while (cin>>n)
    {
        MaxN=0;
        for (i=0;i<n;i++)
        {
            cin>>a[i];
            if (MaxN<a[i])MaxN=a[i];
        }
        for (t=MaxN;;t+=MaxN)
        {
            for (j=0;j<n;j++)
                if (t%a[j]!=0)break;
            if (j==n)break;
        }
        cout<<t<<endl;
    }
    return 0;    
}
